<div ng-controller="regitCtr">
<div>
    <div class="spTop">
        <a onClick="javascript: history.go(-1);" class="glyphicon glyphicon-chevron-left"></a>
        <a href="#" class="peronHom">注册</a>
    </div>
<div class="container" style="margin-top:30px ">
    <div class="">
        <form ng-hide="succMsg || errMsg" name="regForm" novalidate ng-submit="submitForm(regForm.$valid)">
            <div class="form-group">
                <input type="text"
                       id="tel"
                       name="tel"
                       ng-model="tel"
                       class="form-control"
                       placeholder="请输入您的手机号"
                       ng-minlength="11"
                       required
                       ng-pattern="/^1[3|4|5|7|8]\d{9}$/"
                />
                <!--<p ng-show="regForm.submitted" class="error">-->
                    <span ng-show="regForm.tel.$dirty&&regForm.tel.$error.required">请输入手机号</span>
                    <span ng-show="regForm.tel.$dirty&&regForm.tel.$error.pattern">请填写正确的手机号</span>
                <!--</p>-->
            </div>

            <div class="form-group">
              <div class="row">
                  <div class="col-xs-8">
                      <input type="text"
                             id="regiTel"
                             ng-model="regiTel"
                             class="form-control"
                             placeholder="请输入验证码"
                      />
                      <p>
                          <span ng-show="yzm">验证码不正确</span>
                      </p>
                  </div>
                  <div class="col-xs-4">
                      <input type="button"  ng-click="yzm(tel)" value="获取" class="btn btn-success">
                  </div>
              </div>
            </div>
            <div class="form-group">
                <input type="text"
                       id="password"
                       name="password"
                       ng-model="password"
                       ng-minlength="6"
                       ng-maxlength="20"
                       required
                       ng-pattern="/^[A-Za-z0-9]+$/"
                       class="form-control"
                       placeholder="请输入登录密码"
                />
                <!--<p ng-show="form.submitted" class="error">-->
                    <small ng-show="regForm.password.$dirty&&regForm.password.$error.required">请输入密码只能为6-20位字母与数字的组合</small>
                    <small ng-show="regForm.password.$error.minlength">密码长度最低6个字符</small>
                    <small ng-show="regForm.password.$error.maxlength">密码长度最高20个字符</small>
                    <small ng-show="regForm.password.$error.pattern">密码只能为6-20位字母与数字的组合</small>
                <!--</p>-->
            </div>
            <div class="form-group">
                <input type="text"
                       class="form-control"
                       placeholder="确认密码"
                       name="repassword"
                       ng-model="repassword"
                       id="repassword"
                       type="password"
                       pw-check="password"
                       required
                />
                <!--<p ng-show="form.submitted" class="error">-->
                    <span ng-show="regForm.repassword.$dirty&&regForm.repassword.$error.required">请输入密码只能为6-20位字母与数字的组合</span>
                    <span ng-show="regForm.repassword.$error.minlength">密码长度最低6个字符</span>
                    <span ng-show="regForm.repassword.$error.maxlength">密码长度最高20个字符</span>
                    <span ng-show="regForm.repassword.$error.pattern">密码只能为6-20位字母与数字的组合</span>
                    <span ng-show="regForm.repassword.$error.pwmatch">密码和确认密码不一致!!</span>
                <!--</p>-->

            </div>

            <div class="form-group">
                <input type="submit"
                   value="确定"
                   ng-click="submitRegist()"
                   class="btn btn-success btn-block"
                   ng-disabled="regForm.$invalid"
                />
            </div>
        </form>
        <!--<p ng-show="succMsg">{{succMsg}}</p>-->
        <!--<p ng-show="errMsg">{{errMsg}}</p>-->
    </div>
</div>
</div>
</div>